﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 策略模式使用前
{
    public class Fashi: Hero
    {
        public override void showname()
        {
            Debug.WriteLine("法师");
        }

        public override void attack()
        {
            Debug.WriteLine("正在攻击");
        }

        public override void move()
        {
            Debug.WriteLine("正在移动");
        }
        //修改的部分 
        public override void death()
        {
            Debug.WriteLine("正在死亡");
        }
    }
}
